<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title> - 基础表格</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="favicon.ico">
    <link href="css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="css/animate.css" rel="stylesheet">
    <link href="css/style.css?v=4.1.0" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="css/myheadimg.css" />
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">

</div>

<div class="col-sm-12">
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>教师列表</h5>
            <div class="ibox-tools">
                <a class="collapse-link">
                    <i class="fa fa-chevron-up"></i>
                </a>
                <a class="dropdown-toggle" data-toggle="dropdown" href="table_basic.html#">
                    <i class="fa fa-wrench"></i>
                </a>
                <ul class="dropdown-menu dropdown-user">
                    <li>
                        <a href="table_basic.html#">选项1</a>
                    </li>
                    <li>
                        <a href="table_basic.html#">选项2</a>
                    </li>
                </ul>
                <a class="close-link">
                    <i class="fa fa-times"></i>
                </a>
            </div>

        </div>
        <div class="ibox-content">
            <div class="row">
                <div class="col-sm-3">
                    <div class="input-group">
                        <input type="text" placeholder="请输入关键词" class="input-sm form-control"> <span class="input-group-btn">
                                        <button type="button" class="btn btn-sm btn-primary"> 搜索</button> </span>
                    </div>
                </div>
            </div>
            <div class="ibox-content">
                <table class="table table-hover">
                    <thead>
                    <tr>
                        <c:if test="${user.rid==3}">
                            <th>教师编号</th>
                            <th>教师名称</th>
                        </c:if>
                        <c:if test="${user.rid==4}">
                            <th>学生编号</th>
                            <th>学生名称</th>
                        </c:if>
                        <th>团队编号</th>
                        <th>团队名称</th>
                        <th>参赛编号</th>
                        <th>赛事编号</th>
                        <th>赛事名称</th>
                        <th>所有评委对此队的评分总和</th>
                    </tr>
                    </thead>
                    <tbody>
                    <c:forEach items="${scorelist}" var="score">
                        <tr>
                            <c:if test="${user.rid==3}">
                                <td>${score.tid}</td>
                                <td>${score.tname}</td>
                            </c:if>
                            <c:if test="${user.rid==4}">
                                <td>${score.sid}</td>
                                <td>${score.sname}</td>
                            </c:if>
                            <td>${score.teamid}</td>
                            <td>${score.teamname}</td>
                            <td>${score.matchcode}</td>
                            <td>${score.mid}</td>
                            <td>${score.mname}</td>
                            <td>${score.sumscore}</td>
                        </tr>
                    </c:forEach>
                    </tbody>
                </table>

                <div class="ibox-content" style="width:270px;margin: auto;">
                    <div class="btn-group">
                        <button type="button" class="btn btn-white"><i class="fa fa-chevron-left"></i></button>
                        <button class="btn btn-white">1</button>
                        <button class="btn btn-white  active">2</button>
                        <button class="btn btn-white">3</button>
                        <button class="btn btn-white">4</button>
                        <button type="button" class="btn btn-white"><i class="fa fa-chevron-right"></i></button>
                    </div>
                </div>

            </div>

        </div>

    </div>
</div>

</div>

<!-- 全局js -->
<script src="js/jquery.min.js?v=2.1.4"></script>
<script src="js/bootstrap.min.js?v=3.3.6"></script>

<!-- Peity -->
<script src="js/plugins/peity/jquery.peity.min.js"></script>

<!-- 自定义js -->
<script src="js/content.js?v=1.0.0"></script>

<!-- iCheck -->
<script src="js/plugins/iCheck/icheck.min.js"></script>

<!-- Peity -->
<script src="js/demo/peity-demo.js"></script>

<script>
    $(document).ready(function() {
        $('.i-checks').iCheck({
            checkboxClass: 'icheckbox_square-green',
            radioClass: 'iradio_square-green',
        });
    });
</script>

</body>

</html>